package com.samoiloff.util.lang {
	import com.samoiloff.util.data.PropItem;

	/**
	 * @author Damirr
	 */
	public class XLIFFLangItem extends PropItem {
		
		public function XLIFFLangItem()  {
			
		}
		
		public function update(obj : Object) : void {
			_obj = obj;
//			var children:XMLList = xml.elements();
//			for each (var childXML:XML in children) {
//				if (!childXML.hasComplexContent() && String(childXML.@ids).length == 0) {
//					setValueByProp(childXML.name(), childXML.text());
//				}
//			}
		}

		override public function getValueByProp(propName: String): * {
			//убрать нижние подчеркивания и calmCase
			propName = propName.split('_').join('').toLocaleLowerCase();
			var str:String = super.getValueByProp(propName); 
			if (str) {
				return str;
			}
			return propName.toUpperCase();
		}
	}
}
